﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;

/// <summary>
/// Summary description for MasterBase
/// </summary>
public class MasterBase : MasterPage
{
    protected Author _author;
    public Author SessionAuthor
    {
        get { return _author; }
        set { _author = value; }
    }

    public MasterBase()
    {
        this.Load += new EventHandler(MasterBase_Load);
    }

    void MasterBase_Load(object sender, EventArgs e)
    {
        if (Session["Author"] != null)
            _author = (Author)Session["Author"];
    }
}
